package code._17annotation._05case;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class Demo {
    static int[] arr = new int[5];

    @Before
    public void init() {
        System.out.println("初始化");
        arr[0] = 1;
        arr[1] = 2;
        arr[2] = 3;
        arr[3] = 4;
        arr[4] = 5;
    }
    @Test
    public void myTest1() {
        System.out.println(1111);
        for (int i : arr) {
            System.out.println(i);
        }
    }
    @Test
    public void myTest2() {
        System.out.println(2222);
    }
    @Test
    public void myTest3() {
        System.out.println(3333);
    }

    @After
    public void destroy() {
        System.out.println("释放资源");
    }
}
